package com.qys.livesMall.finance.enums;

import com.qys.livesMall.common.message.QysLang;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @menu Test
 * @date 2023/11/13 18:01
 */
public enum Test {

    RE_AF(1,"re_af"),
    RE_DE(2,"re_de"),
    RE(3,"re"),
    RE_CL(4,"re_cl"),
    WL_AF(5,"wl_af"),
    WL_CL(6,"wl_cl"),
    WL(7,"wl"),
    SRE_AF(8,"sre_af"),
    SRE_DE(9,"sre_de"),
    SRE(10,"sre"),
    SRE_CL(11,"sre_cl"),
    SWL_AF(12,"swl_af"),
    SWL_CL(13,"swl_cl"),
    SWL(14,"swl"),
    GF(15,"gf"),
    DE(16,"de"),
    SGF(17,"sgf"),
    SDE(18,"sde"),
    PU(19,"pu"),
    RF(20,"rf"),
    YH(21,"yh"),
    YH_RB(22,"yh_rb"),
    YH_RA(23,"yh_ra"),
    YH_CT(24,"yh_ct"),
    YH_OP(25,"yh_op"),
    YH_SG(26,"yh_sg"),
    YH_AG(27,"yh_ag"),
    YH_PG(28,"yh_pg"),
    YH_SPF(29,"yh_spf"),
    YH_SP(30,"yh_sp"),
    GC(31,"gc"),
    PT(32,"pt"),
    PT_PO(33,"pt_po"),
    PT_PR(34,"pt_pr"),
    PT_PI(35,"pt_pi"),
    PT_SPI(36,"pt_spi"),
    LG_AG(37,"lg_ag"),
    FU(38,"fu"),
    FU_SG(39,"fu_sg"),
    SDP(40,"sdp"),
    IR(41,"ir"),
    LV_BS(42,"lv_bs"),
    LV_GG(43,"lv_gg"),
    VR(44,"vr");
    /**
     * 错误码
     */
    private int code;

    /**
     * 错误描述
     */
    private String msgKey;

    Test(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    public String getMsgKey() {
        return msgKey;
    }

    public static void main(String[] args) {
        List<String> oldkeys= new ArrayList<>();
        for(Test financeMessageEnum:Test.values()){
            oldkeys.add(financeMessageEnum.getMsgKey());
        }
        List<String> newKeys=new ArrayList<>();
        for(AccountBusinessTypeEnum o:AccountBusinessTypeEnum.values()){
            newKeys.add(o.getCode());

            if (!oldkeys.contains(o.getCode())){
                System.out.println(o.getCode()+"="+o.getDesc());
            }
        }
        Integer i=44;
        for(String o:newKeys){


        }

    }
}

